/* 
浮动用的多可以设置成类
input 的 color 是设置光标的颜色
处理margin时使用flex效率高
盒子阴影
box-sizing
重复使用的样式可以提取出来
*/
* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

input,
button {
    display: block;
    outline: none;
    border: 0;
}

.lf {
    float: left;
}

.rf {
    float: right;
}

.todo {
    display: flex;
    width: 600px;
    margin: 50px auto;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #dddddd;
    box-sizing: border-box;
    border-radius: 10px;
}

.addTodo>input {
    width: 570px;
    height: 35px;
    margin-top: 10px;
    line-height: 35px;
    color: #dddddd;
    padding-left: 10px;
    font-size: 16px;
    border: 1px solid #dddddd;
    box-sizing: border-box;
    border-radius: 10px;
}

.addTodo>input:focus {
    color: black;
    border: 1px solid rgb(117, 185, 240);
    box-shadow: 0 0 10px 1px rgba(117, 185, 240, .3);
}

.todolist {
    margin: 20px 0;
}

.todolist ul {
    width: 580px;
    border: 1px solid #dddddd;
    box-sizing: border-box;
}

.todolist ul li {
    display: flex;
    justify-content: space-between;
    height: 38px;
    line-height: 37px;
    box-sizing: border-box;
    border-bottom: 1px solid #dddddd;
}

.todolist ul li:last-child {
    border: 0;
}

.todolist ul li .info input,
.record input {
    margin: 12px 5px 0px 10px;
}

.todolist ul li .deletodo button {
    display: none;
    width: 55px;
    height: 30px;
    margin-top: 4px;
    margin-right: 4px;
    background-color: #da4f49;
    border-radius: 5px;
    color: white;
}

.todolist ul li:hover {
    background-color: #cccccc;
}

.todolist ul li:hover .deletodo button {
    display: block;
}

.record {
    width: 580px;
    height: 38px;
    margin-bottom: 10px;
    line-height: 38px;
}

.record>p {
    margin-left: 30px;
}

.record button {
    width: 125px;
    height: 30px;
    margin-top: 4px;
    margin-right: 4px;
    background-color: #da4f49;
    border-radius: 5px;
    color: white;
}